package org.jeecg.modules.demo.basestaffshareholder.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.basestaffshareholder.entity.BaseStaffShareholder;
import org.jeecg.modules.demo.basestaffshareholder.mapper.BaseStaffShareholderMapper;
import org.jeecg.modules.demo.basestaffshareholder.service.IBaseStaffShareholderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 员工关联股东
 * @Author: jeecg-boot
 * @Date: 2022-02-08
 * @Version: V1.0
 */
@Service
public class BaseStaffShareholderServiceImpl extends ServiceImpl<BaseStaffShareholderMapper, BaseStaffShareholder> implements IBaseStaffShareholderService {
    @Autowired
    private BaseStaffShareholderMapper baseStaffShareholderMapper;

    @Override
    public void deleteByShareholderId(String shareholderId) {
        baseStaffShareholderMapper.deleteByShareholderId(shareholderId);
    }

    @Override
    public void deleteByStaffId(String staffId) {
        baseStaffShareholderMapper.deleteByStaffId(staffId);
    }
}
